<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2019-11-27
 * Time: 14:30
 * banner 子表
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class BannerItem extends BaseModel
{
    use SoftDelete;
    protected $hidden = ['img_id','banner_id','delete_time','update_time'];

    public function img()
    {
        return $this->belongsTo('Image','img_id','id');
    }
}